/**
 * @(#)BaseInfoDAOImpl.java 2016年12月5日
 * Copyright(C) 2015 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;


import java.util.List;

import org.jsbd.boss.dao.IEmailInfoDAO;
import org.jsbd.boss.domian.EmailGroupBean;
import org.jsbd.boss.domian.EmailInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import edu.hziee.common.dbroute.BaseDAO;

/**
 * TODO 请加入本类的说明
 * @author <a href="mailto:zhangbinghua@zhexinit.com" >zbh</a>
 * @version 1.0.0
 */
public class EmailInfoDAOImpl  extends BaseDAO  implements IEmailInfoDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(EmailInfoDAOImpl.class);

	@Override
	public List<EmailInfo> getAllEmailInfo() {
		return super.queryForList("qy_channel_emailInfo.GET_ALL_CONFIG");
	}

	@Override
	public Integer insertConfig(EmailInfo emailInfo) {
		return (Integer) super.insert("qy_channel_emailInfo.INSERT_CONFIG", emailInfo);
	}

	@Override
	public Integer deleteConfig(String userName) {
		return super.delete("qy_channel_emailInfo.DELETE_CONFIG", userName);
	}

	@Override
	public List<EmailInfo> getAllEmailGroupInfo(EmailGroupBean emailGroup) {
		return super.queryForList("qy_channel_emailInfo.GET_GROUP_EMAIL", emailGroup);
	}
}
